From: Florian Müllner Date: Mon, 22 Feb 2010 19:06:13 +0000 (+0100) Subject: [MessageTray] Clear bannerText before re-adding on updates X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~10419 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b2db95380b49483fe1e688751427c58cfa49f85d;p=gnome-shell.git [MessageTray] Clear bannerText before re-adding on updates Currently only the old title/summary line is removed from notifications before setting the updated values - do the same for bannerText if applicable. --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 188a55fb2..62011a287 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -80,7 +80,7 @@ Notification.prototype = { let children = this.actor.get_children(); for (let i = 0; i < children.length; i++) { let meta = this.actor.get_child_meta(children[i]); - if (clear || meta.row == 0) + if (clear || meta.row == 0 || (this._bannerBody && meta.row == 1)) children[i].destroy(); } if (clear) {